/**
 * 
 */
package lt.vin.exaatto.client.events;

import lt.vin.exaatto.shared.UserInformation;

import com.google.gwt.event.shared.GwtEvent;

/**
 * @author Vincentas
 *
 */
public class UserInfoAvailableEvent extends GwtEvent<UserInfoAvailableHandler> {

	private final UserInformation userInfo;
	
	public UserInfoAvailableEvent(UserInformation userInfo) {
		this.userInfo = userInfo;
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<UserInfoAvailableHandler> getAssociatedType() {
		return UserInfoAvailableHandler.type;
	}

	@Override
	protected void dispatch(UserInfoAvailableHandler handler) {
		handler.userInfoAvailable(userInfo);
	}

}
